﻿<UserControl x:Class="Rio.Framework.Pages.Workflow.Filters.ReadOrNotControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    >

    <Border x:Name="LayoutRoot" BorderThickness="1" BorderBrush="#FF8A929E" Padding="5" Background="#FFDFE2E5">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="90"/>
                <ColumnDefinition Width="90"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="10"/>
                <RowDefinition Height="30" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <RadioButton Name="rRead"  
                         Grid.Row="1"  
                         IsChecked="false" 
                         GroupName="ReadMode" 
                         Click="RadioButton_Click" 
                         HorizontalAlignment="Right" 
                         Margin="0,0,32,0" />
            
            <RadioButton Name="rNotRead" 
                         Grid.Column="1" 
                         Grid.Row="1"  
                         IsChecked="false" 
                         GroupName="ReadMode" 
                         Click="RadioButton_Click"  />

            <StackPanel Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
                <telerik:RadButton Name="filterButton" 
                                   Content="Filter" 
                                   Click="OnFilter" 
                                   Margin="2" 
                                   Width="80"/>
                
                <telerik:RadButton Name="clearButton" 
                                   Content="Clear" 
                                   Click="OnClear" 
                                   Margin="2"
                                   Width="80"/>
            </StackPanel>
        </Grid>
    </Border>
</UserControl>
